package com.wusuowei.shiro_jwt;

import com.wusuowei.shiro_jwt.config.WxConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;

@MapperScan("com.wusuowei.shiro_jwt.mapper")
@SpringBootApplication(scanBasePackages = {"com.wusuowei.shiro_jwt"})
public class ShiroJwtApplication {
    private static final Logger logger = LoggerFactory.getLogger(ShiroJwtApplication.class);
    public static void main(String[] args) {
//        SpringApplication.run(ShiroJwtApplication.class, args);
        ConfigurableApplicationContext context = SpringApplication.run(ShiroJwtApplication.class, args);
        WxConfig wxConfig = context.getBean(WxConfig.class);
        logger.info("WxConfig initialized with: " + wxConfig.toString());
    }

}
